$(function(){
  let $block=$('#main');

  window.onhashchange=function(){
    let color=window.location.hash.substring(3,location.hash.length);

    $block.css({
      'background-color':color
    })
  }
});
